package createThread;

/**
 * 创建线程的第一种方式
 * 采用继承Thread类的方式
 */
public class CreateThreadByClass extends Thread {
    @Override
    public void run() {
        System.out.println("Thread is run ....");
    }

    public static void main(String[] args) {
        CreateThreadByClass thread = new CreateThreadByClass();
        thread.start();
    }
}
